﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Entity
{
    public class search_bug_submit : bug_submit
    {
        public string submit_state_str
        {
            get
            {
                return submit_state.ToString();
            }
        }
    }
    public class bug_submit
    {
        /// <summary>
        ///  bug提交id
        /// </summary>
        public string bug_submit_id { get; set; }
        /// <summary>
        ///   BUG描述
        /// </summary>
        public string bug_des { get; set; }
        /// <summary>
        ///  bug图片描述
        /// </summary>
        public string bug_pics { get; set; }
        /// <summary>
        ///  提交人ID
        /// </summary>
        public string uid { get; set; }
        /// <summary>
        ///  提交人姓名
        /// </summary>
        public string uname { get; set; }
        /// <summary>
        /// 等级
        /// </summary>
        public int lv { get; set; }
        /// <summary>
        /// BUG类型
        /// </summary>
        public string bug_type { get; set; }
        /// <summary>
        /// 指派给谁
        /// </summary>
        public string send_uid { get; set; }
        public string send_uname { get; set; }
        /// <summary>
        /// 完成人ID
        /// </summary>
        public string end_uid { get; set; }
        /// <summary>
        /// 完成人名称
        /// </summary>
        public string end_uname { get; set; }

        public DateTime sub_date { get; set; }

        public DateTime? end_time { get; set; }

        public submit_state submit_state { get; set; }
    }
    public enum submit_state
    {
        未处理 = 0,
        解决中 = 1,
        已完成 = 2,
        忽略 = 10,
        设计如此 = 11
    }
    public class save_bug
    {
        /// <summary>
        ///  bugid
        /// </summary>
        public string bug_submit_id { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        public string bug_des { get; set; }
        /// <summary>
        /// 图片描述
        /// </summary>
        public string[] bug_pic { get; set; }

        public string bug_type { get; set; }
    }
}
